package com.example.haha_.ui_demo.retrofitservice;

import com.example.haha_.ui_demo.beans.Dish;
import com.example.haha_.ui_demo.beans.Result;
import com.example.haha_.ui_demo.beans.people;

import java.util.List;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface Retrofitservice {
    @GET("dishes")
    Call<List<Dish>> getDishes();
//    http://172.17.7.95:8080/MenuAPIDemo/dish?id=1
    @GET("dish")
    Call<Result> getDish(@Query("id") String id);
//    http://172.17.7.95:8080/MenuAPIDemo/dish/2
    @GET("dish/{id}")
    Call<Result> getDishByPathParam(@Path("id") String id);
    @GET("getShopById.do")
    Call<ResponseBody>getShopById(@Query("shop_id") String shop_id);
    @GET("userLogin.do")
    Call<people>getuserid(String username, String userpass);

}
